import './styles/index.scss'
import { createApp } from 'vue'
import store from '@/stores'

import App from './App.vue'
import router from './router'
// 引入ElementPlus插件与它的样式
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import { zhCn } from 'element-plus/es/locales.mjs'
// svg插件需要配置代码
import 'virtual:svg-icons-register'
// 引入自定义插件，注册整个项目全局组件
import globalComponent from '@/components'

const app = createApp(App)

app.use(ElementPlus, {
  locale: zhCn
})

app.use(globalComponent)

app.use(store)
app.use(router)

app.mount('#app')

console.log(import.meta.env)
